﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MWRCommunicationLibrary.ARS408
{
    public class In_CollDetRegionCfg : MWRData
    {
        public override int DefaultCanID
        {
            get
            {
                return 0x401;
            }
        }

        public override int Length
        {
            get
            {
                return 8;
            }
        }

        [ParamDecodor(1, 1)]
        public bool Activation { get; set; }

        [ParamDecodor(2, 1)]
        public bool Coordinates_valid { get; set; }

        [ParamDecodor(8, 3)]
        public int RegionID { get; set; }

        [ParamDecodor(27, 13, 0.2, -500)]
        public double Point1X { get; set; }

        [ParamDecodor(32, 11, 0.2, -204.6)]
        public double Point1Y { get; set; }

        [ParamDecodor(51, 13, 0.2, -500)]
        public double Point2X { get; set; }

        [ParamDecodor(56, 11, 0.2, -204.6)]
        public double Point2Y { get; set; }
    }
}
